using System.Collections.Generic;
using HalalCheck.DataModels;
using HalalCheck.Resources;
using HalalCheck.View;
using Xamarin.Forms;

namespace HalalCheck.ViewModels
{

    public class MenuViewModel : BaseViewModel
    {
        public List<MenuItemHalalCheck> MenuData
        {
            get
            {
                return _menuData;
            }
            set
            {
                _menuData = value;
                NotifyPropertyChanged();
            }
        }

        private List<MenuItemHalalCheck> _menuData;

        public MenuViewModel()
        {
            MenuData = new List<MenuItemHalalCheck>
		    {
		        new MenuItemHalalCheck()
		        {
		            Title = HalalStrings.ENumbers,
		            IconSource = "enumbers.png",
                    ViewModelType = typeof(HalalListViewModel)
		        },
                new MenuItemHalalCheck()
		        {
		            Title = HalalStrings.CheckShareTitle,
		            IconSource =  "enumbers.png",
                    ViewModelType = typeof(ChecknShareViewModel)
                    
		        },
		        new MenuItemHalalCheck()
		        {
		            Title = HalalStrings.Salah,
		            IconSource = "salah.png",
                    ViewModelType = typeof(SalahViewModel)
                    
		        },
                new MenuItemHalalCheck()
                {
                     Title= HalalStrings.Quran,
                     IconSource = "quran.png",
                     ViewModelType = typeof(QuranViewModel)
                },  new MenuItemHalalCheck()
		        {
		            Title = HalalStrings.AllahNames,
		            IconSource = "allahnames.png",
		            ViewModelType = typeof (AllahNamesViewModel)
		        },
		        new MenuItemHalalCheck()
		        {
		            Title = HalalStrings.LiveMakkah,
		            IconSource = "qibla.png",
		            ViewModelType = typeof (LiveMakkahViewModel)
		        },
		        new MenuItemHalalCheck()
		        {
		            Title = HalalStrings.LiveMadina,
		            IconSource = "madina.png",
		            ViewModelType = typeof (LiveMadinaViewModel)
		        }
		    };
        }
    }

}